#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int find1(int x) {
	int r = x;
	while (r != bin[r]) {
		r = bin[r];
	}
	return r;
}

void merge1(int x, int y) {
	int fx = find1(x);
	int fy = find1(y);
	bin[fx] = fy;
}

int main() {
	int bin[1002] = { 0 };
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) bin[i] = i;


	return 0;
}

